package es.dk.hl.view.helper
{
	import es.dk.hl.event.PhotoEvent;
	import es.dk.hl.view.ChoosePhotos;
	import es.dk.hl.vo.PhotoVO;
	
	import mx.core.UIComponent;
	import mx.events.CloseEvent;
	import mx.events.ResizeEvent;
	import mx.managers.PopUpManager;

	public class ChoosePhotosHelper
	{
		
		public var view : ChoosePhotos;
		public var photo:PhotoVO;
		public var viewParent:UIComponent; 
		
		public function ChoosePhotosHelper()
		{
		}
		
		public function creationCompleteHandler() : void
		{
			view.x = (view.stage.stageWidth/2)  - (view.width/2);
        	view.y = (view.stage.stageHeight/2) - (view.height/2);					
			new PhotoEvent(PhotoEvent.PhotoEvent_GET,photo).dispatch();			
		}

		public function titlewindow_closeHandler(event:CloseEvent):void
		{
			PopUpManager.removePopUp(view);
		}	
			
	}
}